package com.xbongbong.pro.enums;

import com.xbongbong.i18n.util.I18nMessageUtil;
import lombok.Getter;

/**
 * @Author shian
 * @create 2020-01-06 14:41
 * @Description
 */
@Getter
public enum ModuleAppOperateEnum {
    /*
     * 应用操作分类
     */
    CLOSE(1, "enum.moduleAppOperate.operateName.close", "close"),
    START(2, "enum.moduleAppOperate.operateName.start", "start"),
    TRIAL(3, "enum.moduleAppOperate.operateName.trial", "trial"),
    APPLYTRIAL(4, "enum.moduleAppOperate.operateName.applytrial", "applyTrial"),
    OPEN(5, "enum.moduleAppOperate.operateName.open", "open"),
    APPLYOPEN(6, "enum.moduleAppOperate.operateName.applyopen", "applyOpen"),
    UPGRADERENEWAL(7, "enum.moduleAppOperate.operateName.upgraderenewal", "upgradeRenewal"),
    INSTALL(8, "enum.moduleAppOperate.operateName.install", "install"),
    OPEN_AUTHORIZATION(9, "enum.moduleAppOperate.operateName.open_authorization", "openAuthorization"),
    CLOSE_AUTHORIZATION(10, "enum.moduleAppOperate.operateName.close_authorization", "closeAuthorization"),

    OPEN_OUTSIDE(11, "enum.moduleAppOperate.operateName.open_authorization", "openOutside"),
    CLOSE_OUTSIDE(12, "enum.moduleAppOperate.operateName.close_authorization", "closeOutside"),
    ;

    private int operateType;

    private String operateName;

    private String alias;

    ModuleAppOperateEnum(int operateType, String operateName, String alias) {
        this.operateType = operateType;
        this.operateName = operateName;
        this.alias = alias;
    }

    public String getOperateName() {
        return I18nMessageUtil.getMessage(operateName);
    }
}
